Skip to content

Instantly share code, notes, and snippets.

@jeffersonmartin
jeffersonmartin / moodle-nginx-config
Created April 22, 2017 17:50
Nginx Config for Moodle (with proper rewrite/paths)
server {
listen 80;
server_name learn.mydomain.com;
return 301 https://learn.mydomain.com$request_uri;
}
server {
listen 443 ssl;
server_name learn.mydomain.com;
@karpathy
karpathy / microgpt.py
Last active February 16, 2026 12:37
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@bkacjios
bkacjios / Kill la Kill - IF patching.md
Last active February 16, 2026 12:36
Kill la Kill - IF (Window Style Patch)

Kill la Kill - IF (Steam Deck Fix)

Kill la Kill - IF will not properly launch on the steam deck in game mode because of the launch menu stylization.

Bash script patcher

  • Download https://gist.github.com/bkacjios/f4231f5c2b44976597b030887332c73a as a sh file and place it in the same directory as the KILLlaKILL_IF.exe file.
  • Make sure to mark it as executable by right click->properties and going to the permissions tab.
  • Right click and run the script with Konsole.
  • If the exe is unpatched, it will ask if you would like to patch it. Type y to confirm.
@niw
niw / EZSignEpaperProtocol-ja.md
Last active February 16, 2026 12:36
400x300 4-Color e-Paper NFC Protocol

NFC で書き換えられる 400x300 4色電子ペーパーのプロトコル

いま巷で話題の NFC で書き換えできる名札サイズの電子ペーパーのプロトコルを調べました。

1. 前提

  • 画面サイズ: 400 x 300
  • 色インデックス (2bit):
    • 0 = Black
  • 1 = White
@pushpak1300
pushpak1300 / SKILL.md
Last active February 16, 2026 12:35
Formats Laravel config/*.php file comments using Laravel’s cascading three-line style. Ensures comment blocks follow the subtle line-length rhythm used in the framework’s core, preserving the clean, professional feel of first-party Laravel configuration files.
name description license
laravel-comments
Format Laravel config file comments using the cascading style. Use when writing or fixing comments in config/*.php files.
MIT

Laravel Cascading Comment Style

When to Use This Skill

---
name: Stock Portfolio Tracker
description: Build institutional-grade portfolio analytics HTML reports from an Excel workbook — risk metrics, correlation matrix, stress testing, sector exposure, and options delta hedging.
tools: ['vscode', 'execute', 'read', 'edit', 'search', 'web', 'duckduckgo/*', 'agent', 'todo']
---
> **Source:** This guide is adapted from [Building an Institutional-Grade Portfolio Tracker with AI](https://mispricedassets.substack.com/p/building-an-institutional-grade-portfolio) by Mispriced Assets.
Why You Should Spend a Couple Hours Learning This
Learning to use an AI coding agent is one of the highest-ROI skills you can develop right now. It feels like a video game.
import { useMouse } from '@uidotdev/usehooks';
import * as React from 'react';
interface Positions {
/* Sub-menu height */
h: number;
/* Mouse x */
mouseX: number;
/* Mouse y */
mouseY: number;
@notnotrobby
notnotrobby / cgp.md
Last active February 16, 2026 12:34
List of free resources to study computer graphics programming.
@szerintedmi
szerintedmi / statusline-battery.sh
Last active February 16, 2026 12:33
Claude Code custom statusline with context bar, git status, and lines of code
#!/bin/bash
#
# Claude Code Custom Statusline
# ==============================
# Shows model name, thinking effort, context usage, git status, and lines changed.
#
# Example output:
# Claude Opus 4.5 ▌▌▌ ⛁⛁⛁⛁⛁⛶⛶⛶⛶⛶⛶⛝⛝⛝ 67% │ ~/project [main ↑2 ●3] │ +127 -45
#
# Features:
Hello,
Google was notified that your Chrome Web Store item, “Zoom Redirector" with ID fmaeeiocbalinknpdkjjfogehkdcbkcd, allegedly infringes upon the trademark(s) of other(s).
As a result, your item was removed from the Chrome Web Store.
We have attached a copy of the original notice we received for your reference. If you have any questions or concerns about this issue, please address them directly to the complainant: enf.zoom.1704282@enfappdetex.com.
If the complainant responds to the original trademark notice to authorize the republishing of your item, and your item does not otherwise violate the Developer Terms of Service, Program Policies or Branding Guidelines, we will reinstate it. Otherwise, if your account is still in good standing and the nature of your item allows for republishing, you may consider releasing a new, non-infringing version of your item to the Chrome Web Store under a new package name. These are the only avenues for reinstatement. Any attempts to republish this extension will be den